package com.fa4j.common.base.exception;

/**
 * 服务异常，5xx异常
 */
public class ServerException extends BaseException {

    public ServerException(String message, Throwable cause) {
        super(CommonServerError.INTERNAL_SERVER_ERROR, message, null, cause);
    }

    public ServerException(String message) {
        super(CommonServerError.INTERNAL_SERVER_ERROR, message, null, null);
    }

    public ServerException(ServerErrorType errorType, String message, Object[] args, Throwable cause) {
        super(errorType, message, args, cause);
    }
}
